package com.wdzl.util;

import java.io.InputStream;
import java.net.URL;

/**
 * @Author: zhang
 * @Date：22:28
 * @Description:
 */
public class FileUitl {
    public static InputStream getSrcFileInputStream(String filename){
        if(!filename.startsWith("/")){
            filename = "/"+filename;
        }
        return FileUitl.class.getResourceAsStream(filename);
    }
    public static URL getSrcFileResources(String filename){
        if(!filename.startsWith("/")){
            filename = "/"+filename;
        }
        return FileUitl.class.getResource(filename);
    }
}
